import { history } from 'umi';

import { Tooltip } from 'antd';

import styles from '../../styles.less';

import MyIcon from '@/components/MyIcon';

const index = () => {
  // let targerColor = '#1890ff';

  const onNavigate = () => {
    history.push({
      pathname: '/workmanage/workbench',
    });
  };

  return (
    <Tooltip placement="bottom" title={'我的工作台'}>
      <div className={styles['header-dropDown-layout']} onClick={onNavigate}>
        <MyIcon type={'icon-gongzuotai'} style={{ fontSize: 16 }} />
      </div>
    </Tooltip>
  );
};

export default index;
